<?php

/**
 * 入口文件  第一次加载 的 定义全局内容
 */
use VDB\Spider\QueueManager\InMemoryQueueManager;

if(!defined("IN_DEBUG"))
define("IN_DEBUG",true);

if(!defined("LOG_LEVEL"))
define("LOG_LEVEL",\LDL\Twspider\E\ConsoleLogLevel::DEBUG);

global $LOGGER,$_Q;
//echo "\033[1;33mxxxx\033[0m";
$LOGGER=new \LDL\Twspider\E\ConsoleLog(LOG_LEVEL);
$_Q=new InMemoryQueueManager();

function debug($s){
	var_dump($s);exit;
}
/*$number = 2; $str = "Shanghai";

$LOGGER->info("There are %u million cars in %s.",$number,$str);
$LOGGER->debug("xsf is d %s %s",2,2);
$LOGGER->error("xsf is d %s %s",2,2);*/
/*if(!defined("IN_")){
	echo "de\n";
	define("IN_",1);
	$_Q=new InMemoryQueueManager();
	$GLOBALS["_Q"]=$_Q;
}*/


//global  $_c;
//$_c="xxxesr\n"; //canot global ,or if put into $GLOBALS ,or must include this file ; bacuse include on called Function
